package com.example.mall.service.impl;

import com.example.mall.mapper.SpManageMapper;
import com.example.mall.pojo.SpManager;
import com.example.mall.service.SpManagerService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class SpManagerServiceImpl implements SpManagerService {

    SpManageMapper spManagerMapper;
    @Override
    public SpManager getById(Integer id) {

        SpManager spManager = spManagerMapper.selectById(id);
        if(spManager==null){
            return null;
        }
        return spManager;
    }
}
